package 结构型模型.桥接模式;

public abstract class Computer {
    protected Brand brand;

    public Computer(Brand brand) {
        this.brand = brand;
    }
    public void sale(){
        brand.sale();
    }
}
class Destop extends Computer{

    public Destop(Brand brand) {
        super(brand);
    }

    @Override
   public void sale() {
        super.sale();
        System.out.println("桌面电脑");
    }
}
